/*
 * Commands.java
 *
 * Created on April 9, 2007, 10:48 AM
 */

package d20chat;

import java.awt.*;

/**
 * Displays a window with a few basic slash commands.
 * commands displayed include:
 * <ul>
 *    <li>/say</li>
 *    <li>/tell</li>
 *    <li>/silence</li>
 *    <li>/unsilence</li>
 *    <li>/silence all</li>
 *    <li>/unsilence all</li>
 *    <li>/kick</li>
 * </ul>
 */
public class Commands extends javax.swing.JFrame {
    
    //private D20Chat tempMain;
    
     /**
     * Class constructor for Commands.
     * Displays a window listing off common commands, usually displayed in help.
     */
    public Commands() {
        initComponents();
        
        // Center Profile Manager jFrame
        Dimension scrn = getToolkit().getScreenSize();
        this.setBounds( (scrn.width-getWidth())/2, (scrn.height-getHeight())/2, getWidth(), getHeight() );
    }
    
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
/**
     * 
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        genlabel = new javax.swing.JLabel();
        saylabel = new javax.swing.JLabel();
        telllabel = new javax.swing.JLabel();
        GMcommlabel = new javax.swing.JLabel();
        GMsilencelabel = new javax.swing.JLabel();
        GMunsilencelabel = new javax.swing.JLabel();
        GMsilalllabel = new javax.swing.JLabel();
        GMunsilalllabel = new javax.swing.JLabel();
        GMkicklabel = new javax.swing.JLabel();

        setTitle("D20 Chat Commands");
        setResizable(false);
        genlabel.setBackground(new java.awt.Color(255, 255, 255));
        genlabel.setFont(new java.awt.Font("Tahoma", 1, 14));
        genlabel.setText("General Commands:");

        saylabel.setText("/say   --  General message to all.");

        telllabel.setText("/tell <name>  --  Private message to <name>.");

        GMcommlabel.setFont(new java.awt.Font("Tahoma", 1, 14));
        GMcommlabel.setText("GM Commands:");

        GMsilencelabel.setText("/silence <name>  -- GM silence <name> general chat.");

        GMunsilencelabel.setText("/unsilence <name>  --  GM allow <name> general chat.");

        GMsilalllabel.setText("/silence all  --  GM silence all general chat. (except GM)");

        GMunsilalllabel.setText("/unsilence all  --  GM allow all general chat.");

        GMkicklabel.setText("/kick <name>  --  GM kick <name> from the room.");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(genlabel)
                    .addComponent(GMcommlabel)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(7, 7, 7)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(telllabel)
                            .addComponent(saylabel)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(7, 7, 7)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(GMunsilencelabel)
                            .addComponent(GMsilencelabel)
                            .addComponent(GMunsilalllabel)
                            .addComponent(GMsilalllabel)
                            .addComponent(GMkicklabel))))
                .addContainerGap(135, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(genlabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(saylabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(telllabel)
                .addGap(23, 23, 23)
                .addComponent(GMcommlabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(GMsilencelabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(GMunsilencelabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(GMsilalllabel, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(GMunsilalllabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(GMkicklabel)
                .addContainerGap(17, Short.MAX_VALUE))
        );
        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel GMcommlabel;
    private javax.swing.JLabel GMkicklabel;
    private javax.swing.JLabel GMsilalllabel;
    private javax.swing.JLabel GMsilencelabel;
    private javax.swing.JLabel GMunsilalllabel;
    private javax.swing.JLabel GMunsilencelabel;
    private javax.swing.JLabel genlabel;
    private javax.swing.JLabel saylabel;
    private javax.swing.JLabel telllabel;
    // End of variables declaration//GEN-END:variables
    
}
